<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.jsp" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title></title>
	<script type="text/javascript" src="<%=basePath%>resources/scripts/runflow/runindex.js">
	</script>
</head>
<body>
	<div id="testbar">
	<h4>测试流程引擎</h4>
	<br/>
	<label>用户id:</label><input type="text" id="userId" />
	<label>用户中文名:</label><input type="text" id="userName" />
	<label>电邮:</label><input type="text" id="userEmail" />
	<label>用户密码:</label><input type="password" id="userPwd" />
	<input type="button" onclick="createUser()" value="增加用户" />
	<hr/>
	
	<label>组id:</label>
	<select id="groupId">
		<option label="administrator" value="administrator" />
		<option label="base" value="base" />
		<option label="manager" value="manager" />
		<option label="misc" value="misc" />
		<option label="officeAssistant" value="officeAssistant" />
		<option label="test" value="test" />
	</select>
	<label>组name:</label><input type="text" id="groupName" />
	<label>组type:</label><input type="text" id="groupType" />
	<input type="button" onclick="createGroup()" value="增加组" />
	<hr/>
	<label>用户id:</label><input type="text" id="memberUserId" />
<!-- 	<label>组id:</label><input type="text" id="memberGroupId" /> -->
	<label>组id:</label>
	<select id="memberGroupId">
		<option label="administrator" value="administrator" />
		<option label="base" value="base" />
		<option label="manager" value="manager" />
		<option label="misc" value="misc" />
		<option label="officeAssistant" value="officeAssistant" />
		<option label="test" value="test" />
	</select>
	<input type="button" onclick="createMembership()" value="添加用户到组" />
	<hr/>
	<label>用户id:</label><input type="text" id="deleteUserId" />
	<input type="button" onclick="deleteUser()" value="删除用户" />
	<hr/>
<!-- 	<label>组id:</label><input type="text" id="deleteGroupId" /> -->
	<label>组id:</label>
	<select id="deleteGroupId">
		<option label="administrator" value="administrator" />
		<option label="base" value="base" />
		<option label="manager" value="manager" />
		<option label="misc" value="misc" />
		<option label="officeAssistant" value="officeAssistant" />
		<option label="test" value="test" />
	</select>
	<input type="button" onclick="deleteGroup()" value="删除组" />
	<hr/>
	<label>用户id:</label><input type="text" id="deleteMemberUserId" />
	<label>组id:</label>
	<select id="deleteMemberGroupId">
		<option label="administrator" value="administrator" />
		<option label="base" value="base" />
		<option label="manager" value="manager" />
		<option label="misc" value="misc" />
		<option label="officeAssistant" value="officeAssistant" />
		<option label="test" value="test" />
	</select>
	<input type="button" onclick="deleteMembership()" value="从组中移除用户" />
	<hr/>
	
	</div>

	
	<input id="hiddenBasePath" type="hidden" value="<%=basePath%>" >
</body>
</html>